package com.hk.userservice.service.es;

import com.hk.userservice.model.es.EsLoginLog;
import java.io.IOException;
import java.util.Map;

/**
 * @author zhe
 * @Create 2021/8/1/8:07
 * @State Es 登录日志服务接口
 */
public interface EsLoginLogService {

    Map<String, Object> searchDocument(Integer page, Integer limit, EsLoginLog loginLog) throws IOException;

    EsLoginLog getDocumentInfo(String index,String _id) throws IOException;

    boolean createDocument(String index, Object o, String _id, long requestTime) throws IOException;

    boolean updateDocumentInfo(String index,String _id,Object o,long requestTime) throws IOException;

    boolean deleteDocumentInfo(String index,String _id,long requestTime) throws IOException;

    boolean deleteIndex(String index,long requestTime) throws IOException;

}
